#Goal for this example:

#build a object files some with cuda and some without than
#embed these into an executable

add_library(mixed_object_lib OBJECT static.cu static.cpp)

add_executable(uses_object_libs
               main.cpp )

target_sources(uses_object_libs PRIVATE $<TARGET_OBJECTS:mixed_object_lib>)
